package com.ruoyi.slope.ai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.ai.mapper.SlopeAiInvocationJobMapper;
import com.ruoyi.slope.ai.domain.SlopeAiInvocationJob;
import com.ruoyi.slope.ai.service.ISlopeAiInvocationJobService;

/**
 * 调用/作业记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-05
 */
@Service
public class SlopeAiInvocationJobServiceImpl implements ISlopeAiInvocationJobService 
{
    @Autowired
    private SlopeAiInvocationJobMapper slopeAiInvocationJobMapper;

    /**
     * 查询调用/作业记录
     * 
     * @param jobId 调用/作业记录主键
     * @return 调用/作业记录
     */
    @Override
    public SlopeAiInvocationJob selectSlopeAiInvocationJobByJobId(String jobId)
    {
        return slopeAiInvocationJobMapper.selectSlopeAiInvocationJobByJobId(jobId);
    }

    /**
     * 查询调用/作业记录列表
     * 
     * @param slopeAiInvocationJob 调用/作业记录
     * @return 调用/作业记录
     */
    @Override
    public List<SlopeAiInvocationJob> selectSlopeAiInvocationJobList(SlopeAiInvocationJob slopeAiInvocationJob)
    {
        return slopeAiInvocationJobMapper.selectSlopeAiInvocationJobList(slopeAiInvocationJob);
    }

    /**
     * 新增调用/作业记录
     * 
     * @param slopeAiInvocationJob 调用/作业记录
     * @return 结果
     */
    @Override
    public int insertSlopeAiInvocationJob(SlopeAiInvocationJob slopeAiInvocationJob)
    {
        return slopeAiInvocationJobMapper.insertSlopeAiInvocationJob(slopeAiInvocationJob);
    }

    /**
     * 修改调用/作业记录
     * 
     * @param slopeAiInvocationJob 调用/作业记录
     * @return 结果
     */
    @Override
    public int updateSlopeAiInvocationJob(SlopeAiInvocationJob slopeAiInvocationJob)
    {
        return slopeAiInvocationJobMapper.updateSlopeAiInvocationJob(slopeAiInvocationJob);
    }

    /**
     * 批量删除调用/作业记录
     * 
     * @param jobIds 需要删除的调用/作业记录主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiInvocationJobByJobIds(String[] jobIds)
    {
        return slopeAiInvocationJobMapper.deleteSlopeAiInvocationJobByJobIds(jobIds);
    }

    /**
     * 删除调用/作业记录信息
     * 
     * @param jobId 调用/作业记录主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiInvocationJobByJobId(String jobId)
    {
        return slopeAiInvocationJobMapper.deleteSlopeAiInvocationJobByJobId(jobId);
    }
}
